all : Register.class Professor.java Course.java Student.java

Professor.class : Professor.java
	javac Professor.java
	
Course.class : Course.java Professor.class Student.class
	javac Course.java

Student.class : Student.java
	javac Student.java

Register.class : Register.java Course.class Professor.class Student.class
	javac Register.java

demo3.jar : all
	jar cvf demo3.jar *.class
	
clean :
	rm -f *.class *.jar
	
test : demo3.jar
	java -cp demo3.jar Register
		
